package com.empire.module.sporttery.dal.mysql.football500yazdetail;

import java.util.*;

import com.empire.framework.common.pojo.PageResult;
import com.empire.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.empire.framework.mybatis.core.mapper.BaseMapperX;
import com.empire.module.sporttery.dal.dataobject.football500yazdetail.Football500YazDetailDO;
import org.apache.ibatis.annotations.Mapper;
import com.empire.module.sporttery.controller.admin.football500yazdetail.vo.*;

/**
 * 亚盘详情 Mapper
 *
 * @author 无敌仙人
 */
@Mapper
public interface Football500YazDetailMapper extends BaseMapperX<Football500YazDetailDO> {

    default PageResult<Football500YazDetailDO> selectPage(Football500YazDetailPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<Football500YazDetailDO>()
                .eqIfPresent(Football500YazDetailDO::getMatchId, reqVO.getMatchId())
                .eqIfPresent(Football500YazDetailDO::getYpId, reqVO.getYpId())
                .likeIfPresent(Football500YazDetailDO::getCompanyName, reqVO.getCompanyName())
                .eqIfPresent(Football500YazDetailDO::getCustomWaterStatus, reqVO.getCustomWaterStatus())
                .eqIfPresent(Football500YazDetailDO::getMainWater, reqVO.getMainWater())
                .eqIfPresent(Football500YazDetailDO::getBall, reqVO.getBall())
                .eqIfPresent(Football500YazDetailDO::getBallStatus, reqVO.getBallStatus())
                .eqIfPresent(Football500YazDetailDO::getCustomWater, reqVO.getCustomWater())
                .eqIfPresent(Football500YazDetailDO::getMainWaterStatus, reqVO.getMainWaterStatus())
                .betweenIfPresent(Football500YazDetailDO::getChangeTime, reqVO.getChangeTime())
                .eqIfPresent(Football500YazDetailDO::getType, reqVO.getType())
                .orderByDesc(Football500YazDetailDO::getId));
    }

}